<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>
    	<spring:message code="head.clothGarment"></spring:message>
    	-
    	<spring:message code="head.informationList"></spring:message>
    </title>
    <!--公共样式-->
    <link href="${pageContext.request.contextPath }/web/css/font/iconfont.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/NormalizeFile.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/public.css" />
    <!--列表页面私有样式-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/web/css/subpage/list.css" />
</head>
<body>
<div class="pagetitle">资讯</div>
<jsp:include page="../main/head.jsp"></jsp:include>
<!--列表 begin-->
<div class="contenter mt134">
    <ul class="info-list">
    <c:forEach items="${Information }" var="in">
        <li>
            <div class="info-list-img"><img src="${pageContext.request.contextPath }/upload/${in.I_IMG}" /></div>
            <div class="info-list-cont">
                <h2 class="info-title">${in.I_NAME}</h2>
                <h2 class="subhead">${in.I_NAME_EN}</h2>
                <p>
                	<div class="info" title="${in.I_INFO}"></div>
	                <a href="${pageContext.request.contextPath }/web/information/informationDetails?id=${in.I_ID}" onfocus="blur()">[<spring:message code="read"></spring:message>]
	                </a>
                </p>
                <div class="info-list-date"><fmt:formatDate value="${in.I_CREATE_TIME }" pattern="yyyy-MM-dd HH:mm:ss" type="date" /></div>
            </div>
            <div class="clearfix"></div>
        </li>
    </c:forEach>
    </ul>
</div>
<!--列表 end-->
<jsp:include page="../main/bottom.jsp"></jsp:include>
<!--全局-->
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/public.js"></script>
<!--ie789下placeholder不兼容-->
<script type="text/javascript" src="${pageContext.request.contextPath }/web/js/placeholder.js"></script>
<script type="text/javascript">
$(function(){
	
	var infoObjs=$('.info');
	infoObjs.each(function(){
		var titleString=$(this).attr('title');
		if(titleString.length>280){
			var titleSub=titleString.substring(0,280);
			$(this).text(titleSub+'...');
		}else{
			$(this).text(titleString);
		}
	});
	
});
</script>
</body>
</html>